Displays a random image from a string of image links.

The snippet gets a random image from the string of images you tell it to use then outputs it with the css you provide.

It is best used on divs that repeat and not tied into the top css ie: 

==========================================================

<?php
//'/images/br_corner_cloud.png,/images/tr_corner_cloud.png','bottom','right','no-repeat'
//creating a function
function cj_random_image($image_array, $prop1, $prop2, $repeat) {
//image arrays
$image_array = explode(",",$image_array);

$image_max = count($image_array);
	//random image count based on user input
	$image_rando = mt_rand(1, $image_max) - 1;
	
	//image
	echo 'url('.$image_array[$image_rando].')'.$prop1.' '.$prop2.' '.$repeat;
	}
	//created by calebj
?>